import axios from "../../utils/axios";

// 获取用户列表
export function getList(query) {
    return axios({
        url: "/BusDiscountMgr/getList",
        method: "get",
        params: query
    });
}// 获取用户列表
/*export function userlist(query) {
    return axios({
        url: "/mbUserManager/getList",
        method: "get",
        params: query
    });
}*/

export function userlist(query) {
    return axios({
        url: "/discount/getUserList",
        method: "get",
        params: query
    });
}
export function givediscount(data) {
    return axios({
        url: "/discount/giveDiscount",
        method: "post",
        data: data
    });
}
//查看商品列表
export function getGoodList(query) {
    return axios({
        url: "/goldendays-goods/busCommodityMgr/getGoodsList",
        method: "get",
        params: query
    });
}
//分类
export function getCategory(query) {
    return axios({
        url: "/goldendays-goods/busCommodityMgr/getCategory",
        method: "get",
        params: query
    });
}
// 删除
export function delBusDiscount(data) {
    return axios({
        url: "/BusDiscountMgr/delBusDiscount",
        method: "post",
        data: data
    });
}
// 添加
export function addBusDiscount(data) {
    return axios({
        url: "/BusDiscountMgr/addBusDiscount",
        method: "post",
        data: data
    });
}
